<div class="portlet">
  <div class="portlet-header">
    <h1><%=t ".title"%></h1>
  </div>
  <div class="portlet-content">
    <table>
      <thead>
        <tr>
          <th><%= t('activerecord.attributes.people.first_name') %></th>
          <th><%= t('activerecord.attributes.people.last_name') %></th>
          <th><%= t('activerecord.attributes.people.cbox') %></th>
          <th><%= t('activerecord.attributes.people.discount') %></th>
          <th><%= t('activerecord.attributes.people.regard') %></th>
          <th><%= t('activerecord.attributes.people.treatment') %></th>
          <th><%= t('activerecord.attributes.people.currency') %></th>
          <th colspan="3"><%= t('title_actions') %></th>
        </tr>
      </thead>
      <tbody>
		<% @peoples.each do |people| %>
          <tr>
			<td><%=h people.first_name %></td>
			<td><%=h people.last_name %></td>
			<td><%=h people.cbox %></td>
			<td><%=h people.discount %></td>
			<td><%=h people.regard.description %></td>
			<td><%=h people.treatment.description %></td>
			<td><%=h people.currency.name %></td>
            <td class="action"><%= link_to t('btn_show'), people %></td>
            <td class="action"><%= link_to t('btn_edit'), edit_people_path(people) %></td>
            <td class="action"><%= link_to t('btn_destroy'), people, :confirm => t('msg_sure_destroy?'), :method => :delete %></td>
          </tr>
        <% end %>
      </tbody>
   </table>

  </div>
  <div class="portlet-footer">
    <%= link_to t('.btn_new_people'), new_people_path %>
  </div>


</div>
